import React, { lazy } from 'react'
import { createBrowserRouter } from 'react-router-dom'

const Home = lazy(() => import('../Page/Home'))
const List = lazy(() => import('../Page/LIst'))
const My = lazy(() => import('../Page/My'))
const Order = lazy(() => import('../Page/Order'))

export const router=createBrowserRouter([
    {
        path:'/',
        element:<Home/>
    },
    {
        path:'/list',
        element:<List/>
    },
    {
        path:'/my',
        element:<My/>
    },
     {
        path:'/order',
        element:<Order/>
    }
])